﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>focus.html</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../js/jquery-1.8.2.js"></script>
  </head>
  <body>

	X=<input type="text" id="xID"/>
	<br/>
	Y=<input type="text" id="yID"/>

	<script type="text/javascript">
		//显示鼠标移动时的X和Y座标
		$(function(){
			$(document).mousemove(function(){
				var x = event.clientX;
				var y = event.clientY;
				$("#xID").val(x);
				$("#yID").val(y);
			});		
		});
	</script>
	
  </body>
</html>
